<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<head>
    <%@ include file="../../include/import.inc" %>
</head>
<body>
<div class="Head_oper">
    <div class="FL">
        当前位置：<span class="blue"></span>
    </div>
    <div class="FR" id="buttons">
        <a href="javascript:$.zbiti.resetForm()" class="Bu1"><b><i class="icon i_Reset_2"></i>重置</b></a>
        <a href="javascript:save()" class="Bu1 Bu1_green"><b><i class="icon i_Save_2"></i>保存</b></a>
    </div>
</div>
<div>
    <form id="form1" class="pageForm" method="post" action="">
        <div class="form">
${formItems}
        </div>
    </form>
</div>
<%@ include file="../../include/foot.inc" %>
</body>
<script type="text/javascript">
    function save() {
        if ($("#form1").validate().form()) {
            $.zbiti.post("/${apiUrl}/insert", $("#form1").serialize(), function (res) {
                $.zbiti.alert(res.message);
                if (res.success) {
                    $.zbiti.closePopup({refresh: true});
                }
            });
        }
    }

</script>
